#!/bin/bash

Get_Dist_Name(){
    if grep -Eqi "CentOS" /etc/issue || grep -Eqi "CentOS" /etc/*-release; then
        DISTRO='CentOS'
        PM='yum'
    elif grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
        DISTRO='Ubuntu'
        PM='apt'
    else
        DISTRO='unknow'
    fi
    echo $DISTRO
}
Get_Dist_Name
